//
//  UIView+extension.swift
//  MySinaWeiBoSwiftProject
//
//  Created by apple on 2016/11/26.
//  Copyright © 2016年 WangChen. All rights reserved.
//

import UIKit

extension UIView {

    func getNaviVCResponder() -> UINavigationController? {
        
        var responder = self.next
        while responder != nil {
            if let obj = responder as? UINavigationController {
                return obj
            }
            responder = responder?.next
        }
        return nil
    }

}
